#ifndef _BSP_NVS_H
#define _BSP_NVS_H
#include <stdio.h>
#include <inttypes.h>

#define DEVICE_ID_SET_FLAG  0X55

typedef struct
{
    char mqtt_url[100];                     // mqtt url信息
    char device_id[19];                    // 设备号码
    uint32_t nvs_temp;
    uint8_t device_id_flag;
}nvs_info_t;








nvs_info_t *get_nvs_info(void);
void local_nvs_init(void);
void save_mqtt_nvs_custom(void);
void save_device_id_nvs_custom(void);
void save_device_temp_nvs_custom(uint8_t *temp_buffer);
#endif

